package com.fufan.mtsaas.modules.base.processinfo.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.io.Serializable;


/**
 * 流程处理表
 *
 * @author Liby
 * @date 2024-12-16
 */
@Data
@ApiModel(description = "流程处理表")
@TableName("p_process_info")
public class PProcessInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    @ApiModelProperty(value = "系统ID")
    private String id;
    @ApiModelProperty(value = "关联id")
    private Long correlationId;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    @ApiModelProperty(value = "任务名称")
    private String taskName;
    @ApiModelProperty(value = "任务分类：1-新技术项目；2-阶段")
    private Integer category;
    @ApiModelProperty(value = "处理人")
    private String processBy;
    @ApiModelProperty(value = "处理人id")
    private Long processUserId;
    @ApiModelProperty(value = "当前流程状态：10-科室负责人初审；20-医务部初审；30-伦理委员会；40-院内组织评审；50-医保办公室；60-财务部；70-项目开通；80-年审下发；90-科室主任审批；100-医疗技术临床应用管理委员会审批 110: 已完成年审")
    private Integer processStatus;
    @ApiModelProperty(value = "审批操作")
    private String processOper;
    @ApiModelProperty(value = "耗时")
    private String processTime;
    @ApiModelProperty(value = "处理状态：1-已处理，0-待处理 2 无需处理")
    private Integer status;
    @ApiModelProperty(value = "审核状态,1 通过 2驳回")
    private Integer auditStatus;
    @ApiModelProperty(value = "任务内容，扩展内容存JSON")
    private String task;
    @ApiModelProperty(value = "提交次数")
    private Integer submitCount;
    @ApiModelProperty(value = "审批意见")
    private String remarks;
    @ApiModelProperty(value = "版本")
    private String version;

}
